package com.Day1009;

import java.io.BufferedWriter;
import java.io.File;
import java.io.FileWriter;

public class Text7 {
    public static void main(String[] args) throws Exception {
        File file = new File("F:\\Java\\d.txt");
        FileWriter fileWriter = new FileWriter(file);
        BufferedWriter bufferedWriter = new BufferedWriter(fileWriter);
        bufferedWriter.write("我是中国人！");
        bufferedWriter.flush();//  刷新
        bufferedWriter.close();
        fileWriter.close();
    }
}
